package com.ziDingYiValidator2;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Constraint指明使用哪个类来处理此注解的逻辑
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = CheckCaseValidate.class)
@SuppressWarnings("all")
public @interface CheckCase {

    String message() default "车牌号错误";

    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default { };

    /**
     * 自定义的枚举类型
     */
    CaseMode value();
}
